package com.kasax.test.bc.model.netapi;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;

public interface INetTestApi {
    @GET
    Call<String> testGetIpAddr(@Url String url, @QueryMap Map<String, String> params);

    @POST
    Call<String> getToabaiIp(@Url String url, @FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST
    Call<String> getFormUrl(@Url String url, @FieldMap Map<String, String> params);

    @POST
    Call<String> getJsonParam(@Url String url, @Body String rawData, @HeaderMap Map<String, String> headers);

    @POST
    Call<String> getXmlParam(@Url String url, @Body String rawData, @HeaderMap Map<String, String> headers);

    @GET
    Call<String> testWanAndroidBanners(@Url String url);

    @FormUrlEncoded
    @POST
    Call<String> testWanAndroidLogin(@Url String url, @FieldMap Map<String, String> params);

}
